<?php

class Application_Model_DbTable_UsersToRoles extends Zend_Db_Table_Abstract {

	protected $_name = 'users_to_roles';
	protected $_primary = 'id';
	protected $_referenceMap = array(
		'Users' => array(
				'columns' => array('user'),
				'refTableClass' => 'Application_Model_DbTable_Users',
				'refColumns' => array('id'),
				'onDelete' => self::CASCADE,
				'onUpdate' => self::CASCADE
		),
		'Roles' => array(
				'columns' => array('role'),
				'refTableClass' => 'Application_Model_DbTable_AclRoles',
				'refColumns' => array('id'),
				'onDelete' => self::CASCADE,
				'onUpdate' => self::CASCADE
		)
	);

}